package com.lc.common.bean.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * 分页参数
 * @author zhangchongyang
 */
@Setter
@Getter
@ApiModel(value = "Page", description = "分页")
public class PageParam {
    @ApiModelProperty(value = "第几页")
    @Min(value = 0,message = "页码最小为0")
    private int page;

    @ApiModelProperty(value = "条数")
    @Max(value = 200,message = "每页展示数量最大值为200")
    private int rows;

}
